1bashThis demonstrates executing an inline Python command to print a string to the console.python -c 'print("Hello World!")'external toolspythoninline script execution
2bashThis script reads and pretty-prints the contents of a JSON file using Python's built-in JSON tool.cat myJSONFile.json | python -m json.toolexternal toolspythonJSON pretty-printing
3bashThis code takes a positional argument, ensures it is provided using parameter expansion, and then uses Python's urllib.parse.quote to URL-encode the string.echo "${1:?'is required'}" | python3 -c "import sys, urllib.parse; print(urllib.parse.quote(sys.stdin.read().strip()))"external toolspython